from page.login_page import LoginPage

class LoginHandle():

    def __init__(self, driver):
        self.login_p = LoginPage(driver)

    def send_name(self, name):
        self.login_p.name_element().send_keys(name)

    def send_password(self, password):
        self.login_p.password_element().send_keys(password)

    def click_buttom(self):
        self.login_p.buttom_element().click()

    def res_title_text(self):
        return self.login_p.res_title().text 